package com.springbootlearn.c01_helloworld.controller;

import com.springbootlearn.c01_helloworld.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {


    User user = new User("test",3);

    @RequestMapping("/hello")
    public User hello() {
        return user;
    }
}
